Steps needed in order to create the mmp textures file of this example:
1.- run the BAB.EXE program
2.- Type the next sentence in the console:
execfile("example.py")
3.- Once the textures have been processed type the next sentence in the console:
BaBx.SaveFile("example.mmp")
DONE!
-------------------------
Comments about the "BaBx.BitmapData" function in the example.py file:
- The first parameter is the internal name of the texture -the name that understands the engine-. In case of compilling the map textures, that name must be THE SAME NAME given to the texture in the "paleta de texturas" view.
- The second parameter is the name of the .bmp file (256*256 pixels, 24 bpp) that represents the texture into the HD.
- The third parameter is the weight of the texture when computing the 8 bits palette for the .mmp file -in case of using this .mmp format file-.
Miscellania
- You can create all .mmp files you want, each with its own palette.
- If you create a dome, the internal names for the textures must be that way:
DomeUp, DomeDown, DomeRight, DomeLeft, DomeFront and DomeBack
- The line "BaBx.ProcessBitmaps(l1)" can be written also: